
<template>
    <div>
      <my-select :items="items" v-model="value"></my-select>
      {{ value }}
    </div>
  </template>
  
  <script setup lang="ts">
  import { ref } from 'vue'
  const items = ref([
  {
    value: 'apple',
    label: '苹果',
  },
  {
    value: 'banana',
    label: '香蕉',
    disabled: true,
  },
  {
    value: 'pear',
    label: '梨',
  }
  ])
  let value=ref("pear")
  
  </script>